<link rel="stylesheet" href="<%= basePath%>/lib/sui.min.css">
<link rel="stylesheet" href="<%= basePath%>/lib/sui-append.min.css">
<link rel="stylesheet" href="<%= basePath%>/public/iconfont/iconfont.css">
<link rel="stylesheet" href="<%= basePath%>/public/css/style.css">
<link rel="stylesheet" href="<%= basePath%>/modules/student/css/style.css">

<script type="application/javascript" src="<%= basePath%>/lib/jquery.min.js"></script>
<script type="application/javascript" src="<%= basePath%>/lib/sui.min.js"></script>
<script type="application/javascript" src="<%= basePath%>/public/js/util.js"></script>
<script type="application/javascript" src="<%= basePath%>/modules/student/js/student.js"></script>
<script>
    $('#newStrip').on('okHide', function(e){console.log('okHide')});
    $('#newStrip').on('okHidden', function(e){console.log('okHidden')});
    $('#newStrip').on('cancelHide', function(e){console.log('cancelHide')});
    $('#newStrip').on('cancelHidden', function(e){console.log('cancelHidden')});
    $('#leave-date1 input').datepicker({size:"small"});
    $('#leave-date2 input').datepicker({size:"small"});
</script>

<%
var AbsenceApplyStatusInfo = {
    0: {
        className: 'unchecked',
        text: '未审核'
    },
    1: {
        className: 'checked',
        text: '审核通过'
    },
    2: {
        className: 'checked',
        text: '审核未通过'
    }
}
%>

<div class="body_scroll">
    <ul class="frame-content add-strip">
        <% if ( absenceApplies.length == 0 ) {
        %>
        暂无假条
        <%
        } %>
        <% absenceApplies.forEach(function(apply) { %>
        <div class="date"><%=lib.util.formatDate(apply.time)%></div>
        <div class="chip <%=AbsenceApplyStatusInfo[apply.status].className%>">
            <span class="content"><%= apply.comment%></span>
            <!--<a class="status" data-toggle="modal" data-target='#stripChecking[data-id="<%=apply.id%>"]' data-keyboard="false" >编辑</a>-->
                    <span class="status">
                        <%=AbsenceApplyStatusInfo[apply.status].text%>
                    </span>
        </div>
        <% }); %>

    </ul>
</div>